package com.xingxuecn.demos.service.impl;

import com.xingxuecn.demos.service.UserService;

import org.apache.commons.lang3.builder.MultilineRecursiveToStringStyle;

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

/**
 * @author Kris at 2018/9/26 9:19
 */
public class MenuService {

    List<String> aList;
    Set<String> bSet;
    String[] cArray;
    Map<String,Object> dMap;
    Properties eProp;

    UserService userService;

    public void sayHello(){
        System.out.println("userService帮我做");
        userService.sayHello();
    }


    public void setUserService(UserServiceImpl userService) {
        this.userService = userService;
    }

    public void setaList(List<String> aList) {
        this.aList = aList;
    }

    public void setbSet(Set<String> bSet) {
        this.bSet = bSet;
    }

    public void setcArray(String[] cArray) {
        this.cArray = cArray;
    }

    public void setdMap(Map<String, Object> dMap) {
        this.dMap = dMap;
    }

    public void seteProp(Properties eProp) {
        this.eProp = eProp;
    }

    @Override
    public String toString() {
        return new org.apache.commons.lang3.builder.ToStringBuilder(this, new MultilineRecursiveToStringStyle())
                .append("aList", aList)
                .append("bSet", bSet)
                .append("cArray", cArray)
                .append("dMap", dMap)
                .append("eProp", eProp)
                .append("userService", userService)
                .toString();
    }
}
